package user;

import book.BookList;
import operation.IOPeration;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28956
 * Date: 2024-01-27
 * Time: 23:02
 */
public abstract class User {
    protected String name;

    protected IOPeration[] ioPerations;
    public User(String name) {
        this.name = name;
    }

    public abstract int menu();

    public void doOperstion(int choice, BookList bookList){
        ioPerations[choice].work(bookList);
    }
}
